package atm;

import javax.swing.*;
import java.awt.*;

/**
 * 查询界面
 */
public class SearchPanel extends  JPanel{
    private ImageIcon offImg = new ImageIcon("images/buttonOff.jpg");
    private JButton offBtn = new JButton(offImg);
    private JLabel sumLabel = new JLabel("卡上余额:");
    private Font font = new Font("黑体", Font.BOLD, 30);

    public SearchPanel() {
        this.setLayout(null);
        sumLabel.setBounds(300,200,240,50);
        sumLabel.setFont(font);
        offBtn.setBounds(884,240,140,50);
        this.add(sumLabel);
        this.add(offBtn);
        this.setOpaque(false);
    }
}
